#include "FKClientData.h"

#include <QDataStream>

#include "FKLogger.h"

FKClientData::FKClientData(int dummy1, int dummy2):FKSystemObject(){
    Q_UNUSED(dummy1)
    Q_UNUSED(dummy2)
    FK_CBEGIN
    FK_CEND
}

FKClientData::FKClientData(QString clientName,QString password, QVariant validator):FKSystemObject(),
    _clientName(clientName),_password(password),_validator(validator){
    FK_CBEGIN
    FK_CEND
}

//FKClientData::FKClientData(FKClient *source, QObject *parent):FKSystemObject(parent){
//    FK_CBEGIN
//    FK_CEND
//}

FKClientData::~FKClientData(){
    FK_DBEGIN
    FK_DEND
}

QString FKClientData::clientName() const{
    return _clientName;
}

QString FKClientData::password() const{
    return _password;
}

QVariant FKClientData::validator() const{
    return _validator;
}

void FKClientData::pack(QDataStream &stream){
    stream<<_clientName;
    stream<<_password;
    stream<<_validator;
}

bool FKClientData::load(QDataStream &stream){
    stream>>_clientName;
    stream>>_password;
    stream>>_validator;
    return true;
}
